package com.yingxin.yxerp.module.sys.vo.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 银行账户
 * @author fanchao
 * @since 2021-08-18
 */

@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "BankAccountCreateVo对象", description = "银行账户")
public class BankAccountCreateVo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "账户名")
    @Length(max = 100)
    @NotNull(message = "账户名不能为空！")
    private String accountName;

    @ApiModelProperty(value = "开户行")
    @Length(max = 100)
    private String accountBank;

    @ApiModelProperty(value = "账号")
    @Length(max = 100)
    private String accountNo;

    @ApiModelProperty(value = "备注")
    @Length(max = 255)
    private String remarks;

}
